package com.lrkj.smartservice.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 新闻管理对象 tm_press_info
 *
 * @author yajun_ren
 * @date 2021-04-02
 */
@ApiModel(value = "新闻管理对象")
public class PressInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String pressInfoId;

    /** 分类ID */
    @Excel(name = "分类ID")
    @ApiModelProperty("分类ID")
    private String pressTypeId;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String pressTitle;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String pressContent;

    /** 附件ID */
    @Excel(name = "附件ID")
    private String fileId;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String filePath;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long pageView;

    /** 数据状态（0正常 1停用） */
    @Excel(name = "数据状态", readConverterExp = "0=正常,1=停用")
    private String statusCd;

    /** 创建者编码 */
    @Excel(name = "创建者编码")
    private String createByCode;

    /** 更新者编码 */
    @Excel(name = "更新者编码")
    private String updateByCode;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String pressTypeName;

    public void setPressInfoId(String pressInfoId)
    {
        this.pressInfoId = pressInfoId;
    }

    public String getPressInfoId()
    {
        return pressInfoId;
    }
    public void setPressTypeId(String pressTypeId)
    {
        this.pressTypeId = pressTypeId;
    }

    public String getPressTypeId()
    {
        return pressTypeId;
    }
    public void setPressTitle(String pressTitle)
    {
        this.pressTitle = pressTitle;
    }

    public String getPressTitle()
    {
        return pressTitle;
    }
    public void setPressContent(String pressContent)
    {
        this.pressContent = pressContent;
    }

    public String getPressContent()
    {
        return pressContent;
    }
    public void setFileId(String fileId)
    {
        this.fileId = fileId;
    }

    public String getFileId()
    {
        return fileId;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setPageView(Long pageView)
    {
        this.pageView = pageView;
    }

    public Long getPageView()
    {
        return pageView;
    }
    public void setStatusCd(String statusCd)
    {
        this.statusCd = statusCd;
    }

    public String getStatusCd()
    {
        return statusCd;
    }
    public void setCreateByCode(String createByCode)
    {
        this.createByCode = createByCode;
    }

    public String getCreateByCode()
    {
        return createByCode;
    }
    public void setUpdateByCode(String updateByCode)
    {
        this.updateByCode = updateByCode;
    }

    public String getUpdateByCode()
    {
        return updateByCode;
    }

    public String getPressTypeName() {
        return pressTypeName;
    }

    public void setPressTypeName(String pressTypeName) {
        this.pressTypeName = pressTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pressInfoId", getPressInfoId())
            .append("pressTypeId", getPressTypeId())
            .append("pressTitle", getPressTitle())
            .append("pressContent", getPressContent())
            .append("fileId", getFileId())
            .append("filePath", getFilePath())
            .append("pageView", getPageView())
            .append("statusCd", getStatusCd())
            .append("createBy", getCreateBy())
            .append("createByCode", getCreateByCode())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateByCode", getUpdateByCode())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
